package spring.boot.btc.common;

import spring.boot.btc.model.*;
import spring.boot.btc.utils.RsaUtils;

import java.security.Key;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public final class BlockProperty {

    /**
     * 区块总账本
     */
    public static final List<Block> blockList = new LinkedList<>();

    public static Block getLast() {
        return blockList.get(blockList.size() - 1);
    }

    public static final Map<String, Key> sysSignKey = RsaUtils.initKey();
}
